package com.yunkeji.framework.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * mongo配置
 *
 * @author 老张
 */
@Configuration
@ComponentScan(basePackages = {"cn.craccd"}) // 必须填写此包路径
public class MongoConfig {

    //    // 开启事务(如使用单机mongodb,可不配置此@Bean)
    //    @Bean
    //    public MongoTransactionManager transactionManager(MongoDatabaseFactory dbFactory) {
    //        return new MongoTransactionManager(dbFactory);
    //    }
}
